package com.xzzz.backend.bsms.server.rbac.user.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xzzz.common.base.pojo.AbstractPOJO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户登录日志
 */
@Data
@TableName("base_user_login_record")
@EqualsAndHashCode(callSuper = true)
public class UserLoginRecordEntity extends AbstractPOJO implements Serializable {

    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId
    private Long id;
    /** 用户ID */
    private Long userId;
    /** 登录时间 */
    private Date loginTime;
    /** 登录IP */
    private String ip;
    /** user-agent */
    private String userAgent;
    /** accessToken 快照 */
    private String accessTokenSnapshot;
}
